<template>
  <map-component @map-loaded="mapLoaded"/>
</template>

<script>
import MapComponent from '../components/Map'
export default {
  name: 'HomePage',
  components: {
    MapComponent
  },
  data () {
    return {
      map: null
    }
  },
  methods: {
    mapLoaded (map) {
      this.map = map
      console.log('map加载完成')
    }
  }
}
</script>

<style scoped>

</style>
